'''
Created on 2012-1-6

@author: Administrator
'''

class TestResult:
    def __init__(self):
        self.runCount = 0
        self.errorCount = 0
        
    def testStarted(self):
        self.runCount += 1
        
    def testFailed(self):
        self.errorCount += 1
    
    def summary(self):
        return "%d run, %d failed" % (self.runCount, self.errorCount)